package qldc.pm.tiensu.searchcontainer;

import java.text.SimpleDateFormat;
import java.util.Date;

import javax.portlet.PortletRequest;

import qldc.pm.tiensu.constants.TienSuConstants;

import com.liferay.portal.kernel.util.ParamUtil;

public class DSHoGiaDinhSearchTerms extends DSHoGiaDinhDisplayTerms{

	public DSHoGiaDinhSearchTerms(PortletRequest portletRequest) {
		super(portletRequest);
		SimpleDateFormat dateFormat = new SimpleDateFormat(TienSuConstants.DATE_PATTERN);

		quanHuyenId = ParamUtil.getLong(portletRequest, QUAN_HUYEN_ID);
		phuongXaId = ParamUtil.getLong(portletRequest, PHUONG_XA_ID);
		tinhId = ParamUtil.getLong(portletRequest, TINH_ID);
		tuNgayToaAn = ParamUtil.getDate(portletRequest, TU_NGAY_TOA_AN, dateFormat,
				null);
		denNgayToaAn = ParamUtil.getDate(portletRequest, DEN_NGAY_TOA_AN,
				dateFormat, null);
		
	}
}
